<!-- 作业地址 -->
<template>
	<view class="container">
		<view class="content">
			<text class="title">作业地址</text>
			<view class="list">
				<view class="list-item">
					<text class="label">
						{{props.detail.province_name}}{{props.detail.city_name}}{{props.detail.area_name}}{{props.detail.address}}
					</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	const props = defineProps({
		detail: { // 详情
			type: Object,
			default: () => ({})
		},
	});
</script>

<style lang="scss" scoped>
	.container {
		padding: 55rpx 25rpx 0;

		.content {
			.title {
				font-weight: bold;
				font-size: 30rpx;
				color: #222222;
				line-height: 1.5;
			}
		}
	}

	.list {
		background-color: white;
		border-radius: 20rpx;
		margin-top: 30rpx;
		padding-left: 30rpx;

		&-item {
			display: flex;
			align-items: center;
			min-height: 100rpx;
			font-size: 30rpx;
			color: #222222;
			padding: 20rpx 30rpx 20rpx 0;
			box-sizing: border-box;

			&+.list-item {
				border-top: 1rpx solid #E5E5E5;
			}

			.picker {
				flex-grow: 1;
				width: 0;
			}

			.label {
				flex-grow: 1;
				line-height: 1.5;

				&.placeholder {
					color: #999;
				}
			}

			.location-btn {
				display: flex;
				flex-direction: column;
				align-items: center;
				background-color: transparent;
				margin-left: 10rpx;

				.icon {
					width: 32rpx;
				}

				.text {
					font-size: 20rpx;
				}
			}
		}
	}
</style>